package com.mask.common.core.exception;

import lombok.Data;

@Data
public class BaseException extends RuntimeException {
    private String code;
    private String message;
    private Object[] args;

    public BaseException(String message) {
        super(message);
        this.message = message;
    }

    public BaseException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}